﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Model
{
  public class Init : MonoBehaviour
  {

    // Use this for initialization
    void Start()
    {

      Game.EventSystem.Enable(DllType.Model, this.GetType().Assembly);
      Game.Scene.AddComponent<UIComponent>();
      Game.EventSystem.Run((ushort)EMessageType.ModelUI);

    }

    // Update is called once per frame
    void Update()
    {
      try
      {
        Game.EventSystem.Update();

      }
      catch (System.Exception)
      {

        throw;
      }
    }

    private void LateUpdate()
    {
      try
      {
        Game.EventSystem.LateUpdate();
      }
      catch (System.Exception)
      {

        throw;
      }
    }
  }
}


